/*
 * Powered By [pkuWx]
 * Web Site: http://www.wuxi.ss.pku.edu.cn
 * Since 2015 - 2015
 */

package cn.edu.pku.wxlib.authority.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.edu.pku.wxlib.authority.dao.AuthorityDao;
import cn.edu.pku.wxlib.authority.model.Authority;
import cn.edu.pku.wxlib.authority.vo.query.AuthorityQuery;
import javacommon.base.BaseManager;
import javacommon.base.EntityDao;
import javacommon.page.Page;

/**
 * @version 1.0
 * @since 1.0
 */

@Service
@Transactional
public class AuthorityManager extends BaseManager<Authority,AuthorityQuery,java.lang.Integer> implements AuthorityService{
	
	@Autowired
	private AuthorityDao authorityDao;
	public void setAuthorityDao(AuthorityDao dao) {
		this.authorityDao = dao;
	}
	public EntityDao getEntityDao() {
		return this.authorityDao;
	}
	
	@Transactional(readOnly=true)
	public Page findPage(AuthorityQuery query) {
		return authorityDao.findPage(query);
	}
	
}
